package pt.iscte.poo.comparadores;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


public class TesteData {

	public static void main(String[] args) {
		List<Data> datas = new ArrayList<Data>();
		datas.add(new Data(3, 4, 2013));
		datas.add(new Data(3, 3, 2013));
		datas.add(new Data(4, 3, 2013));
		datas.add(new Data(3, 3, 2012));
		System.out.println(datas);
		Collections.sort(datas);
		System.out.println(datas);
	}

}
